#include "include.h"
// starting position x/y
MusicNote::MusicNote(int xPosition, int yPosition)
{
   
    this->xPosition = xPosition;
    this->yPosition = yPosition;
    this->xResolution = 32;
    this->yResolution = 32;
    this->addFrames(1,"img/note.png", 0, 32, 32);
}

void MusicNote::animate(int direction){
  switch (direction){
    case 1:
      this->moveObject(18,(rand()%33)-30);
      break;
    case 2:
      this->moveObject(18,(rand()%18)-9);
      break;
    case 3:
      this->moveObject(18,(rand()%30)-3);
      break;
  }
}
